package cn.mily.pet.domain;

import cn.mily.basics.domain.BasicDomain;
import cn.mily.org.domain.Shop;
import cn.mily.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BasicDomain {
    /*  宠物名字*/
    private String name;
    /* 售价*/
    private BigDecimal saleprice;
    /* 成本价 */
    private BigDecimal costprice;
    /*  图片*/
    private String resources;
    /*  状态 */
    private Integer state=0;
    /*  种类   */
    private PetType type;
    /*  下架时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime = new Date();
    /* 上架时间  */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    /*  创建时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime = new Date();
    /*  店门  */
    private Shop shop;
    /* 用户 */
    private User user;
    /*  寻主信息  */
    private SearchMasterMsg searchMasterMsg;
    /* 详情*/
    private PetDetail detail;
    /*宠物来源*/
    private SourceType sourceType;
}
